import axios from '@/libs/request/axios'
// 获取模板 add_by_gjq
export const getTemplateList = (params) => {
    return axios.request({
        url: `/case/creditTemplate/queryTemplateList`,
        data: params,
        method: 'post'
    })
}
// 添加模板 add_by_gjq
export const addTemplate = (params) => {
    return axios.request({
        url: '/case/creditTemplate/addTemplate',
        data:params,
        method: 'post'
    })
}
// 编辑模板 add_by_gjq
export const editTemplate = (params) => {
    return axios.request({
        url: '/case/creditTemplate/editTemplate',
        data:params,
        method: 'post'
    })
}
// 删除模板 add_by_gjq
export const deleteTemplate = (id, params) => {
    return axios.request({
        url: `/case/creditTemplate/deleteTemplate/${id}`,
        data:params,
        method: 'delete'
    })
}

// 获取当前用户的所有征信模板
export const listTemplateByCurrentUser = (params) => {
    return axios.request({
        url: `/case/creditTemplate/listTemplateByCurrentUser`,
        params:params,
        method: 'get'
    })
}
